﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大学生选课系统头部</title>

    <%@ include file="base.jsp" %>

    <link rel="stylesheet" type="text/css" href="css/public.css"/>
    <script src="js/jquery.min.js"></script>
    <script src="js/public.js"></script>
    <script src="js/external.js"></script>
</head>

<body>
<!-- 头部 -->
<div class="head">
    <div class="headL">
        <img class="headLogo" src="images/banner88.png"/>
    </div>
    <div class="headR">

        <c:if test="${!empty auser}">
            <a target="_parent" href="admin/adminController?fun=logout">
                <span style="margin-right: 20px">退出登录</span>
            </a>
        </c:if>
        <c:if test="${!empty tteacher}">
            <a target="_parent" href="teacher/teacherLoginController?fun=logout">
                <span style="margin-right: 20px">退出登录</span>
            </a>
        </c:if>
        <c:if test="${!empty sstudent}">
            <a target="_parent" href="student/studentLoginController?fun=logout">
                <span style="margin-right: 20px">退出登录</span>
            </a>
        </c:if>

    </div>
</div>
<div class="user">
		<span>
            <c:choose>
                <c:when test="${sessionScope.role == 'admin'}">
                    管理员：${auser.auser}
                </c:when>
                <c:when test="${sessionScope.role == 'teacher'}">
                    教师：${tteacher.tname}
                </c:when>
                <c:when test="${sessionScope.role == 'student'}">
                    学生：${sstudent.sname}
                </c:when>
                <c:otherwise>
                    未登录，请先登录!
                </c:otherwise>
            </c:choose>
		</span>
</div>
</body>

</html>